package org.acme.rest.client.extension;

import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.jboss.resteasy.annotations.jaxrs.PathParam;
import org.jboss.resteasy.annotations.jaxrs.QueryParam;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.util.Set;

/**
 * @description: ExtensionsService
 * @author: general
 * @version: 1.0
 * @create: 2022-03-07 00:23
 **/
@Path("/extensions")
@RegisterRestClient(configKey="extensions-api")
public interface ExtensionsService {

    @GET
    Set<Extension> getById(@QueryParam String id);

    @GET
    @Path("/stream/{stream}")
    Set<Extension> getByStream(@PathParam String stream, @QueryParam("id") String id);
}
